<template>
  <div class="child">
    <h3>这里是子组件</h3>
    <slot  :data="data"></slot>
  </div>
</template>
<script>
  console.log(45)
  export default({
    data(){
      return {
        data: ['zhangsan','lisi','wanwu','zhaoliu','tianqi','xiaoba']
      }
    },
    mounted(){
      console.log(123)
    }
  })
</script>
